package com.cashmama.market.api.application.controller.order.repay.request;

import com.cashmama.market.api.infras.exception.ApplicationException;
import com.cashmama.market.api.infras.utils.StringUtils;
import com.fqgj.common.api.ParamsObject;

/**
 * @program: market-api
 * @description
 * @author: frank
 * @create: 2019-12-27 11:17
 **/
public class RepayDetailRequest extends ParamsObject {

    private String billNo;

    public String getBillNo() {
        return billNo;
    }

    public RepayDetailRequest setBillNo(String billNo) {
        this.billNo = billNo;
        return this;
    }

    @Override
    public void validate() {
        if(StringUtils.isEmpty(billNo)){
            throw new ApplicationException("billNo can not be empty");
        }
    }
}
